cmake_minimum_required(VERSION 3.16)
project(VariableWatch)

set(var 1)
variable_watch(var)
set(var 3)

function(func variable access value current_list_file stack)
	message("variable = ${variable}")
	message("access = ${access}")
	message("value = ${value}")
	message("current_list_file = ${current_list_file}")
	message("stack = ${stack}")
endfunction()

set(var1 "var1")
variable_watch(var1 func)
set(var1 "var1 changed")
